package com.qfedu.meidijiaju.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 话题
 * </p>
 *
 * @author meidimeiju
 * @since 2022-10-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class HuatiYxy implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 话题id
     */
    @ApiModelProperty(value = "话题id")
    @TableId(value = "huati_id", type = IdType.AUTO)
    private Integer huatiId;

    /**
     * 话题名字
     */
    @ApiModelProperty(value = "话题名字")
    @TableField("huatiName")
    private String huatiName;

    /**
     * 话题介绍
     */
    @ApiModelProperty(value = "话题介绍")
    private String huatijieshao;

    /**
     * 讨论数
     */
    @ApiModelProperty(value = "讨论数")
    private Integer taolunshu;

    /**
     * 关注数
     */
    @ApiModelProperty(value = "关注数")
    private Integer guanzhushu;

    /**
     * 话题图片
     */
    @ApiModelProperty(value = "话题图片")
    private String huatitupian;

    /**
     * 创建话题用户id
     */
    @ApiModelProperty(value = "创建话题用户id")
    private int createUid;

    @TableField(exist = false)  // 该属性不是数据表中的字段
    private List<FaxiantieziYxy> faxiantieziYxyList;


}
